﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RaytracerLib.Postprocessing;
using System.ComponentModel;

namespace Raytracer.PropertyGridDecorators
{
    public class TwistProperties
    {
        private TwistEffect m_twist;

        public TwistProperties(TwistEffect a_twist)
        {
            m_twist = a_twist;
        }

        [TypeConverter(typeof(DoubleConverter))]
        public double Angle
        {
            get
            {
                return m_twist.Angle;
            }
            set
            {
                m_twist.Angle = value;
            }
        }

        [TypeConverter(typeof(DoubleConverter))]
        public double CenterX
        {
            get
            {
                return m_twist.CenterX;
            }
            set
            {
                m_twist.CenterX = value;
            }
        }

        [TypeConverter(typeof(DoubleConverter))]
        public double CenterY
        {
            get
            {
                return m_twist.CenterY;
            }
            set
            {
                m_twist.CenterY = value;
            }
        }

        [TypeConverter(typeof(DoubleConverter))]
        public double RadiusX
        {
            get
            {
                return m_twist.RadiusX;
            }
            set
            {
                m_twist.RadiusX = value;
            }
        }

        [TypeConverter(typeof(DoubleConverter))]
        public double RadiusY
        {
            get
            {
                return m_twist.RadiusY;
            }
            set
            {
                m_twist.RadiusY = value;
            }
        }
    }
}
